Optimal. Leaf size=66 \[ -b c d \sqrt {1+c^2 x^2}-\frac {d \left (a+b \sinh ^{-1}(c x)\right )}{x}+c^2 d x \left (a+b \sinh ^{-1}(c x)\right )-b c d \tanh ^{-1}\left (\sqrt {1+c^2 x^2}\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.06, antiderivative size = 66, normalized size of antiderivative = 1.00, number of steps
used = 6, number of rules used = 7, integrand size = 22, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.318, Rules used = {14, 5803, 12,
457, 81, 65, 214} \begin {gather*} c^2 d x \left (a+b \sinh ^{-1}(c x)\right )-\frac {d \left (a+b \sinh ^{-1}(c x)\right )}{x}-b c d \sqrt {c^2 x^2+1}-b c d \tanh ^{-1}\left (\sqrt {c^2 x^2+1}\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 12
Rule 14
Rule 65
Rule 81
Rule 214
Rule 457
Rule 5803
Rubi steps
\begin {align*} \int \frac {\left (d+c^2 d x^2\right ) \left (a+b \sinh ^{-1}(c x)\right )}{x^2} \, dx &=-\frac {d \left (a+b \sinh ^{-1}(c x)\right )}{x}+c^2 d x \left (a+b \sinh ^{-1}(c x)\right )-(b c) \int \frac {d \left (-1+c^2 x^2\right )}{x \sqrt {1+c^2 x^2}} \, dx\\ &=-\frac {d \left (a+b \sinh ^{-1}(c x)\right )}{x}+c^2 d x \left (a+b \sinh ^{-1}(c x)\right )-(b c d) \int \frac {-1+c^2 x^2}{x \sqrt {1+c^2 x^2}} \, dx\\ &=-\frac {d \left (a+b \sinh ^{-1}(c x)\right )}{x}+c^2 d x \left (a+b \sinh ^{-1}(c x)\right )-\frac {1}{2} (b c d) \text {Subst}\left (\int \frac {-1+c^2 x}{x \sqrt {1+c^2 x}} \, dx,x,x^2\right )\\ &=-b c d \sqrt {1+c^2 x^2}-\frac {d \left (a+b \sinh ^{-1}(c x)\right )}{x}+c^2 d x \left (a+b \sinh ^{-1}(c x)\right )+\frac {1}{2} (b c d) \text {Subst}\left (\int \frac {1}{x \sqrt {1+c^2 x}} \, dx,x,x^2\right )\\ &=-b c d \sqrt {1+c^2 x^2}-\frac {d \left (a+b \sinh ^{-1}(c x)\right )}{x}+c^2 d x \left (a+b \sinh ^{-1}(c x)\right )+\frac {(b d) \text {Subst}\left (\int \frac {1}{-\frac {1}{c^2}+\frac {x^2}{c^2}} \, dx,x,\sqrt {1+c^2 x^2}\right )}{c}\\ &=-b c d \sqrt {1+c^2 x^2}-\frac {d \left (a+b \sinh ^{-1}(c x)\right )}{x}+c^2 d x \left (a+b \sinh ^{-1}(c x)\right )-b c d \tanh ^{-1}\left (\sqrt {1+c^2 x^2}\right )\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.02, size = 74, normalized size = 1.12 \begin {gather*} -\frac {a d}{x}+a c^2 d x-b c d \sqrt {1+c^2 x^2}-\frac {b d \sinh ^{-1}(c x)}{x}+b c^2 d x \sinh ^{-1}(c x)-b c d \tanh ^{-1}\left (\sqrt {1+c^2 x^2}\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.48, size = 69, normalized size = 1.05
method | result | size |
derivativedivides | \(c \left (a d \left (c x -\frac {1}{c x}\right )+b d \left (\arcsinh \left (c x \right ) c x -\frac {\arcsinh \left (c x \right )}{c x}-\sqrt {c^{2} x^{2}+1}-\arctanh \left (\frac {1}{\sqrt {c^{2} x^{2}+1}}\right )\right )\right )\) | \(69\) |
default | \(c \left (a d \left (c x -\frac {1}{c x}\right )+b d \left (\arcsinh \left (c x \right ) c x -\frac {\arcsinh \left (c x \right )}{c x}-\sqrt {c^{2} x^{2}+1}-\arctanh \left (\frac {1}{\sqrt {c^{2} x^{2}+1}}\right )\right )\right )\) | \(69\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.27, size = 64, normalized size = 0.97 \begin {gather*} a c^{2} d x + {\left (c x \operatorname {arsinh}\left (c x\right ) - \sqrt {c^{2} x^{2} + 1}\right )} b c d - {\left (c \operatorname {arsinh}\left (\frac {1}{c {\left | x \right |}}\right ) + \frac {\operatorname {arsinh}\left (c x\right )}{x}\right )} b d - \frac {a d}{x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 156 vs.
\(2 (62) = 124\).
time = 0.37, size = 156, normalized size = 2.36 \begin {gather*} \frac {a c^{2} d x^{2} - b c d x \log \left (-c x + \sqrt {c^{2} x^{2} + 1} + 1\right ) + b c d x \log \left (-c x + \sqrt {c^{2} x^{2} + 1} - 1\right ) - \sqrt {c^{2} x^{2} + 1} b c d x - {\left (b c^{2} - b\right )} d x \log \left (-c x + \sqrt {c^{2} x^{2} + 1}\right ) - a d + {\left (b c^{2} d x^{2} - {\left (b c^{2} - b\right )} d x - b d\right )} \log \left (c x + \sqrt {c^{2} x^{2} + 1}\right )}{x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} d \left (\int a c^{2}\, dx + \int \frac {a}{x^{2}}\, dx + \int b c^{2} \operatorname {asinh}{\left (c x \right )}\, dx + \int \frac {b \operatorname {asinh}{\left (c x \right )}}{x^{2}}\, dx\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: TypeError} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.02 \begin {gather*} \int \frac {\left (a+b\,\mathrm {asinh}\left (c\,x\right )\right )\,\left (d\,c^2\,x^2+d\right )}{x^2} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________